{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<div style="padding:30px 0;height:30px;">
    <h1 style="line-height:30px;float:left;font-size:18px;margin:10px 10px;padding:0;"> 修改会员等级</h1>
  </div>
  
  <form action="{:url('member/xiugaiqueren')}" enctype="multipart/form-data" method="post" class="form form-horizontal" id="form-article-add">
  <input type="hidden" name="class_id" value="{$DL_LIST.id}"/>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">会员等级名称</label>
      <div class="formControls col-xs-8 col-sm-9">
      
        <input type="text" style="width:205px;" name="class_name" value="{$DL_LIST.class_name}" class="input-text" required/>
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">返水百分比：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" style="width:205px;" name="fsbl" value="{$DL_LIST.fsbl}" class="input-text" onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">达到等级赠送彩金：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" style="width:205px;" name="dividend" value="{$DL_LIST.dividend}" class="input-text"  onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">充值额外赠送百分比：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" style="width:205px;" name="czzsbl" value="{$DL_LIST.czzsbl}" class="input-text" onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">等级提升所需充值量：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" style="width:205px;" name="czl" value="{$DL_LIST.czl}" class="input-text" onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">等级提升所需洗码量：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" style="width:205px;" name="xml" value="{$DL_LIST.xml}" class="input-text" id="" onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">每月等级赠送彩金：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" style="width:205px;" name="mearmoney" value="{$DL_LIST.mearmoney}" class="input-text"  onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2">每月赠送彩金满足投注金额：</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="number" style="width:100px;" name="zxtzxd" value="{$DL_LIST.zxtzxd}" class="input-text" onkeyup="clearNoNum(this)" onafterpaste="clearNoNum(this)">
      </div>
    </div>
    <div class="am-margin" style="margin-top:60px;">
      <input type="submit" style="margin-left:170px;" class="btn btn-danger radius"  value="提交保存" />
      <input type="button" onclick="javascript:history.go(-1);" style="margin-left:30px;" class="btn btn-primary radius"  value="关闭" />
  </div>
          
  </form>
  <div>
    
  </div>
<script>
  function clearNoNum(obj){
    obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
    obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的
    obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
    obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');//只能输入两个小数
    if( obj.value.indexOf(".")< 0 && obj.value !="" ){
      obj.value= parseFloat(obj.value);
    }

  }
</script>
{/block} 

